#ifndef _LCD_H
#define _LCD_H

#include <8052.h>
#include <stdint.h>
#include "board.h"

#define LCD_DATA P0
#define LCD_RS P2_0
#define LCD_RW P2_1
#define LCD_E P1_2

void lcd_init();

void lcd_wait();

void lcd_write_cmd(uint8_t cmd);

void lcd_write_data(uint8_t data);

void lcd_write_str(const char *s);

#endif
